Class
MapEntry<K, V>
class MapEntry<K, V>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: MapEntry.rvn
Inheritance: Object → MapEntry<K, V>
A reusable live key locator, not a borrowed storage reference or snapshot.
Remarks
Retains the map and key. Each operation resolves current state through the map's comparer. No atomicity, synchronization or rollback is provided. Keys must obey the map's stability requirements.
Constructors
1 item
MapEntry(map: MutableMap<K, V>, key: K)
Creates a live locator without reading or changing the map.
Properties
2 itemsMethods
9 items
AndModify(transform: (V) -> V) -> MapEntry<K, V>
Transforms a present value once and writes back the result.
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
Find() -> Optional<V>
Looks up the current value, preserving the distinction between absence and a present null.
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
OrInsert(value: V) -> V
Inserts the supplied value only when the key is absent.
OrInsertWith(factory: () -> V) -> V
Calls the factory once only when absent, then inserts if still absent.
Set(value: V) -> MapEntry<K, V>
Inserts or replaces the value and returns this locator.
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString